package com.lsyw.intergrate.common.generator;

/**
 * @author liulei
 * @version 1.0
 * @date 2022/3/8 16:11
 */
public class GeneratorConf {
    /**
     * 全局配置
     */
    public static String author = "刘磊";
    public static String projectPath= "D:\\project\\lxhb";
    public static String mapperName = "%sMapper";
    public static String serviceName = "%sService";
    public static String serviceImplName = "%sServiceImpl";
    public static String xmlName = "%sMapper";


    /**
     * 数据源配置 mysql
     */
    public static String url = "jdbc:mysql://101.43.24.235:3306/aaa?serverTimezone=GMT%2B8&useSSL=false&characterEncoding=utf8";
    public static String driverName = "com.mysql.cj.jdbc.Driver";
    public static String username = "root";
    public static String password = "lsyw@1996";

    /**
     * 包配置
     */
    public static String basePackage = "com.lsyw.intergrate";
    public static String controllerPackageName = "controller";
    public static String servicePackageName = "service";
    public static String serviceImplPackageName = "serviceImpl";
    public static String mapperPackageName = "mapper";
    public static String xmlPackageName = "mapper";
    public static String entityPackageName = "entity";

    /**
     * 配置模板
     */
    public static String controllerTemplatePath = "/templates/controller.java";
    public static String serviceTemplatePath = "/templates/service.java";
    public static String serviceImplTemplatePath = "/templates/serviceImpl.java";
    public static String mapperTemplatePath = "/templates/mapper.java";
    public static String xmlTemplatePath = "/templates/mapper.xml.vm";
    public static String entityTemplatePath = "/templates/entity.java";

    /**
     * 策略配置
     * 要逆向生成的表名
     * 单个表名{"email"}; 多个表名 {"email","leaves","record","user"};
     */
    public static String[] tableNames = {"massif_plan","massif_plan_alarm","massif_record"};
}
